import { post } from '@/utils/request'

export function login(data) {
  return post('/auth/login', data)
}

export function getInfo(token) {
  return post('/auth/getinfor', {})
}

export function logout() {
  return post('/auth/logout')
}

export function getusers(data) {
  return post('/user/gets', data)
}

export function adduser(data) {
  return post('/user/add', data)
}

export function deleteuser(data) {
  return post('/user/delete', data)
}

export function updateuser(data) {
  return post('/user/update', data)
}

export function modifypwd(data) {
  return post('/user/modifypwd', data)
}

export function resetpwd(data) {
  return post('/user/resetpwd', data)
}
